package com.qffx.moviebase.view.classify;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.qffx.moviebase.R;

public class SpecialWebviewActivity extends AppCompatActivity {
    private WebView webView;
  //  private ImageView iv_back, iv_share;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_special_webview);
        init();


    }

    private void init() {
        webView = (WebView) findViewById(R.id.special_web);
        webView.setWebViewClient(new WebViewClient());
//        iv_back = (ImageView) findViewById(R.id.speacial_web_back);
//        iv_share = (ImageView) findViewById(R.id.speacial_web_share);
//        iv_back.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                finish();
//            }
//        });

        String url = getIntent().getStringExtra("url");
        WebSettings settings = webView.getSettings();
        webView.loadUrl(url);
    }
}
